﻿using System;

using GameServer.Virtual_Objects.Room;
using GameServer.Virtual_Objects.User;
using GameServer.Networking.Packets;

namespace GameServer.Networking.Handlers
{
    class HANDLE_SCORE_BOARD : PacketHandler
    {
        public override void Handle(Virtual_Objects.User.virtualUser User)
        {
            if (User.Room != null)
            {
                switch (User.Channel)
                {
                    case 4: User.send(new PACKET_SCORE_BOARD_AI(User)); break;
                    default: User.send(new PACKET_SCORE_BOARD(User)); break;
                }
            }
        }
    }
}